package com.zzyl.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class TestCron {

    /**
     * 定时执行方法
     */
    @Scheduled(cron = "0 0 1 1/1 * ? ")
    public void testCron(){
        log.info("测试执行");
    }
}
